package com.lynn.springboot_demo.model;
import org.apache.solr.client.solrj.beans.Field;

/**
 * @author cl
 * @Date 2020/5/18 17:13
 */

public class Person {
    //与solr中schema.xml中的field域映射
    @Field(value = "id")
    private String id;
    @Field(value = "name")
    private String name;
    @Field("desc")
    private String desc;

    @Field("age")
    private Integer age;

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Person(String id, String name, String desc, Integer age) {
        this.id = id;
        this.name = name;
        this.desc = desc;
        this.age = age;
    }
}
